/*
 * Copyright (c) 2024 Huawei Device Co., Ltd.
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

#ifndef NM_TYPE_H
#define NM_TYPE_H

#include <stdint.h>

#ifdef __cplusplus
extern "C" {
#endif

enum vpn_cert_type : int32_t {
    OPENVPN_ASKPASS = 0,
    OPENVPN_CONFIG,
};

enum vpn_state : int32_t {
    STATE_SUCESS = 0,
    STATE_CONNECTED = 4,
    STATE_DISCONNECTED = 5,
    STATE_PRIVATE_KEY_ERROR = 200,
    STATE_CLIENT_CRT_ERROR = 201,
    STATE_CA_CRT_ERROR = 202,
    STATE_TIME_OUT_ERROR = 203,
};

#define MAX_DNS 2
#define DNS_LEN 16
typedef struct {
    char dns_servers[MAX_DNS][DNS_LEN];
    int count;
} DNSList;

#ifdef __cplusplus
}
#endif
#endif // NM_TYPE_H
